package com.mall.weapp.model.vo;

import com.mall.weapp.model.entity.Category;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class CateporyVo  {

    private Long id;
    private String name;
    private int sort;
    private Date createTime;
    private Date updateTime;

    public CateporyVo(Category category){
        this.id = category.getId();
        this.name = category.getName();
        this.sort =category.getSort();
        this.updateTime = category.getUpdateTime();
        this.createTime = category.getCreateTime();
    }
}
